import random

num = ['1', '2', '3', '4', '5', '6', '7', '8',' 9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
       '31', '32', '33']
list = random.sample(num, 8)
print(list)
l =[]
for i in range(8):
    s = input("请输入一个数:")
    if s in l:
        print("数字重复,不要输入相同的数")
        s = input("请输入一个数:")
        l.append(s)
        continue
    l.append(s)
print(l)
count=0
for i in l:
    if i in list:
        count +=1
if count == 8:
    print("一等奖")
elif count ==7:
    print("二等奖")
elif count ==6:
    print("三等奖")
elif count ==5:
    print("四等奖")
else:
    print("你没中奖")


